<?php

namespace App\Models\Stock;

use App\Models\BaseModel;
use App\Models\Basic\Product;
use App\Models\Basic\Storage;

class ProductStock extends BaseModel
{
    //
    protected $fillable=[
        'product_id',
        'storage_id',
        'num',
        'total_cost_price',
        'cost_price'
    ];

    protected $hidden = [
    ];


    public function storage()
    {
        return $this->belongsTo(Storage::class,'storage_id');

    }

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id');
    }



}
